package net.showcal.api.request.mobile;


import net.showcal.api.ApiRuleException;
import net.showcal.api.XiniuRequest;
import net.showcal.api.internal.util.XiniuHashMap;
import net.showcal.api.response.mobile.MealsPictureCreateResponse;

import java.util.Map;



/**
* <p/>
* <pre>
 * ***************************************************************
 *  Copyright (c) 2014 –苏州犀牛网络科技有限公司
    *  Title: com.xiniunet.thermalcontrol.helper.ThermalcontrolHelperImpl
    *  Description: thermalcontrol Request
    *  @since
    *  @author 顾志雄
    * ***************************************************************
 * </pre>
*/
public class MealsPictureCreateRequest implements XiniuRequest<MealsPictureCreateResponse> {
    private XiniuHashMap udfParams = new XiniuHashMap();
    /**
     * 获取API名称
     */
    @Override
    public String getApiMethodName() {
        return "thermalcontrol.mealsPicture.create";
    }

    /**
     * 用户ID 
     */
    private Long userId;
    /**
     * 餐次食物图片 
     */
    private Long urlId;
    /**
     * 关联MB_SYNC_HEAT表中的ID 
     */
    private Long heatId;

    public Long getUserId(){
        return userId;
    }

    public void setUserId(Long userId){
        this.userId=userId;
    }

    public Long getUrlId(){
        return urlId;
    }

    public void setUrlId(Long urlId){
        this.urlId=urlId;
    }

    public Long getHeatId(){
        return heatId;
    }

    public void setHeatId(Long heatId){
        this.heatId=heatId;
    }

    @Override
    public Map<String, String> getTextParams() {
        XiniuHashMap txtParams = new XiniuHashMap();
                txtParams.put("userId", this.userId);
                txtParams.put("urlId", this.urlId);
                txtParams.put("heatId", this.heatId);
        if(this.udfParams != null) {
            txtParams.putAll(this.udfParams);
        }
        return txtParams;
    }

    @Override
    public Long getTimestamp() {
    return null;
    }

    @Override
    public void setTimestamp(Long timestamp) {

    }

    @Override
    public Class getResponseClass() {
        return MealsPictureCreateResponse.class;
    }

    @Override
    public void check() throws ApiRuleException {
    }

    @Override
    public Map<String, String> getHeaderMap() {
        return null;
    }

    @Override
    public void putOtherTextParam(String key, String value) {
        this.udfParams.put(key,value);
    }
}